home *** CD-ROM | disk | FTP | other *** search
/ Merciful 1 / Merciful - Disc 1.iso / software / m / mr_backup / mr_backup.txt next >
Text File  |  1995-10-14  |  59KB  |  1,312 lines

  1.  
  2. MRBACKUP PROFESSIONAL              
  3.  
  4. Welcome to MRBackup Professional!
  5.  
  6. Introduction
  7. ------------
  8. MRBackup is a hard disk backup program for the Commodore Amiga family of
  9. computers. It provides a wide range of services to support Amiga file
  10. management and backup/restore of files to/from hard disk. Files can be
  11. backed up to:
  12.  
  13.  · Floppy disk, in AmigaDOS format
  14.  
  15.  · Floppy disk, in a special "fast" format
  16.  
  17.  · Any sequential file or device (local or networked) in "fast" format
  18.  
  19.  · SCSI streaming tape
  20.  
  21. A saveset catalog file is created for each saveset, allowing quick
  22. retrieval of individual files when necessary. Should the catalog file
  23. become damaged or lost, MRBackup can recreate it by scanning the saveset.
  24.  
  25. MRBackup is designed to behave well in your Amiga's multi-tasking
  26. environment. It does not "take over the machine" and will allow you to use
  27. your Amiga for other chores while backups are being performed. MRBackup is
  28. controlled by a flexible set of user-configurable parameters and offers a
  29. wide range of backup and restore options. Its Intuition-based user
  30. interface is designed for a pleasing appearance and ease of operation.
  31. MRBackup uses the Amiga's speech capabilities to provide an effective means
  32. for presenting prompts, error conditions and requests for floppy disk
  33. insertions, etc. MRBackup provides optional data compression which will
  34. reduce the number of diskettes (or other media) required for a backup.
  35.  
  36. Requirements
  37. · any Amiga system with at least 1 MB memory and AmigaDOS 2.04 or higher
  38.  
  39. · at least 1 floppy disk drive or SCSI streaming tape drive (Archive Viper,
  40.  Wangtek 50XX, TEAC 36XX, Sony DAT, etc. )
  41.  
  42. MRBackup will work with any hard drive supported by the AmigaDOS operating
  43. system.
  44.  
  45. Installation Instructions
  46. -------------------------
  47. As always, prior to installing any new software, make a working copy of the
  48. original diskette. Use the working copy, not the original diskette, for
  49. the installation process. The new installation procedure for MRBackup
  50. Professional will copy all files to a disk partition or a directory within
  51. a partition (recommended). MRBackup's support files have been grouped
  52. according to category into several subdirectories which will be created
  53. within the partition or directory which you specify for installation. You
  54. may wish to make backup copies of any ".init" or filter files which you
  55. created for use with previous versions of MRBackup Professional. They are
  56. still upward compatible with this release of the software.
  57.  
  58. Insert the MRBackup Professional working copy disk into an available floppy
  59. drive and double-click on its disk icon. Find the icon labeled
  60. "Install-MRBackup" and double-click it. This will run a script which will
  61. install MRBackup Professional.
  62.  
  63. IMPORTANT NOTE: this version of the software requires the definition of an
  64. AmigaDOS logical name, MRBackup:. This name is equated to the name of the
  65. partition or directory where MRBackup Professional is installed and must be
  66. created/assigned prior to installation. Example:
  67.  
  68.  MAKEDIR DH0:MRBackup
  69.  ASSIGN MRBackup: DH0:MRBackup
  70.  
  71. It is recommended that you also place the ASSIGN statement in your
  72. startup-sequence (s:StartupII, s:user-startup, etc.) to assure that the
  73. MRBackup: logical name will always be available whenver you reboot your
  74. system.
  75.  
  76. The MRBackup: Directory
  77. -----------------------
  78. This section briefly describes the contents of the MRBackup directory.
  79. None of the subdirectories in this directory are an absolute requirement
  80. but it is strongly suggested that you adopt this configuration.
  81.  
  82. Files in the MRBackup: Directory
  83.  
  84. The following files will be found at the top level of the MRBackup:
  85. directory.
  86.  
  87. Compressor
  88. This program file is MRBackup Professional's data compression "engine". It
  89. is automatically started by MRBackup Professional when data compression or
  90. decompression is requested.
  91.  
  92.  
  93. FormatDisk
  94. This is a shell script file, invoked by MRBackup Professional when a backup
  95. disk is to be formatted (AmigaDOS backup mode). DO NOT use this script for
  96. general-purpose formatting of disks as it is not intended for that purpose.
  97.  
  98.  
  99. MRBackup
  100. This is the MRBackup Professional program file.
  101.  
  102. Subdirectories in the MRBackup: Directory
  103. -----------------------------------------
  104. The MRBackup: directory contains several subdirectories. These
  105. subdirectories provide a means for grouping files with a similar purpose.
  106.  
  107. ARexx_Scripts
  108. This directory contains a number of example ARexx scripts for use with
  109. MRBackup Professional. Use these as a guide for writing your own ARexx
  110. scripts.
  111.  
  112. Catalogs
  113. Use this directory as a repository for catalog files created by the backup
  114. process.
  115.  
  116. Docs
  117. This directory contains several small document files providing additional
  118. information and details not available in the user manual. The file named
  119. Changes in this directory describes last-minute changes that could not be
  120. included in the user manual.
  121.  
  122. Lists and Logs
  123. Use this directory to store listing and log files created by MRBackup
  124. Professional.
  125.  
  126. Prefs
  127. This directory contains various MRBackup Professional "preferences" files
  128. including the MRBackup.init file and the filter file templates. You may
  129. also use this directory to save your custom preferences files.
  130.  
  131. Work
  132. This is the default MRBackup working directory, used to store temporary
  133. files created by MRBackup during backup and restore operations.
  134.  
  135. Operation
  136. This manual assumes that you already know the basic operating principles of
  137. your Amiga and that you are familiar with its user interface. If this
  138. manual refers to an Amiga-specific procedure or feature with which you are
  139. not familiar, please refer to your Amiga owner's manual.
  140.  
  141. MRBackup may be started from the WorkBench by double-clicking its program
  142. icon or from the CLI by typing the appropriate command line. The startup
  143. procedures for each environment are presented below.
  144.  
  145. Working Directory
  146. MRBackup requires an area for storing certain temporary information during
  147. the backup process. This area is called the "working directory". The
  148. working directory defaults to MRBackup:Work, but you may override this
  149. setting. The next two sections describe how this is done.
  150.  
  151. MRBackup may be run from either the Command Line Interface (CLI) or the
  152. WorkBench.
  153.  
  154. CLI Operation
  155. To start MRBackup from the CLI (Command Line Interface, also called the
  156. "Shell"), you can just type MRBackup at the command prompt. MRBackup
  157. supports several command-line options which override its default behavior.
  158. These are: -d <default_directory> This option instructs MRBackup to search
  159. <default_directory>, rather than MRBackup:Prefs, when looking for
  160. preferences files.
  161.  
  162. -i <init_file>
  163.  
  164. This option instructs MRBackup to initialize from <init_file>, rather than
  165. MRBackup:Prefs/MRBackup.init or MRBackup.init in the local directory.
  166.  
  167. -p <default_directory>
  168.  
  169. This option is essentially the same as the -d option.
  170.  
  171. -w <work_directory>
  172.  
  173. This option instructs MRBackup to use <work_directory>, rather than
  174. MRBackup:Work, as the working directory.
  175.  
  176. WorkBench Operation
  177. To start MRBackup from the WorkBench, simply double-click its program icon
  178. or an MRBackup project icon. MRBackup supports several icon Tool Types
  179. entries which can override its default behavior. To add or modify the Tool
  180. Types entries, you must use the Info command in the WorkBench menu. Refer
  181. to your Amiga owner's manual if you are unfamiliar with this procedure.
  182.  
  183. MRBackup recognizes the following Tool Types entries:
  184.  
  185. DIR=<default_directory>
  186. PREFS=<default_directory>
  187.  
  188. These Tool Types are identical and instruct MRBackup to search
  189. <default_directory>when attempting to locate the preferences file.
  190.  
  191. WINDOW=<console_spec>
  192.  
  193. This Tool Type entry instructs MRBackup to open its "background" console
  194. window according to <console_spec> which should be a valid CON: window
  195. specification (e.g. CON:0/0/640/200/MRBackup ).
  196.  
  197. WORK=<work_directory>
  198.  
  199. This Tool Type instructs MRBackup to use <work_directory>, rather than
  200. MRBackup:Work, as the default working directory.
  201.  
  202. If you really want to get clever, you can make copies of MRBackup's project
  203. icon file (MRBackupDefault.info) and tune the Tool Types entries for each
  204. hard disk partition. How is this done? Using the CLI COPY command, make a
  205. copy of MRBackupDefaults.info for each partition. Example:
  206.  
  207.  (CD to the directory where MRBackup resides)
  208.  COPY MRBackupDefaults.info MRBackup-DH0.info
  209.  COPY MRBackupDefaults.info MRBackup-DH1.info
  210.  (etc.)
  211.  
  212. For each icon, make the appropriate changes to the Tool Types entries.
  213.  
  214. Technical Support
  215. If you have a problem with MRBackup, think you've discovered an
  216. "undocumented feature" or just need help, please call! I'll do my best to
  217. help you get the most out of MRBackup Professional. If you don't have
  218. telecommunications software or a modem, you can write to
  219.  
  220.  MRsoftware
  221.  348 Indian Avenue
  222.  Portsmouth, RI 02871
  223.  
  224.  (401) 846-7639
  225.  
  226. MRsoftware maintains an email account on BIX (markr) and a vendor support
  227. forum, amiga.vendors/mrsoftware
  228.  
  229. Users on either Usenet or Internet can send e-mail to 
  230.  
  231.  mrr@mrsoft.network23.com
  232.  
  233.  
  234. MRsoftware has a customer support BBS where product updates and user
  235. support are provided. The BBS phone number is (401) 841-5844. The BBS is
  236. supported by a SupraFAXModem and will answer at 1200, 2400 or 9600 baud
  237. (8N1). The BBS software is AXsh which is a bit different than the typical
  238. BBS system (it's user interface is very much like the Unix operating
  239. system). Presently, two Login prompts must be satisfied to gain access to
  240. the BBS (this will probably change in the near future).
  241.  
  242. At the first Login prompt, always enter `bbs' (without the quotes).
  243.  
  244. At the second Login prompt, do one of the following:
  245.  
  246.  First-time callers must enter `new' to register as a new BBS user,
  247.  then follow instructions as they appear.
  248.  
  249.  On subsequent calls, enter your BBS user name and password, as you
  250.  chose them during your initial registration.
  251.  
  252. Do not forget your password! If you lose it, the only way you will be able
  253. to regain access to the BBS is to request a new one (it's encrypted, so
  254. even I don't know what it is!).
  255.  
  256. A special `guest' account (password = guest) is also provided on the BBS.
  257. This account can be used to test-drive the BBS or to make special requests
  258. such as assigning a new password :-).
  259.  
  260. The latest shareware distribution archive of MRBackup Professional will
  261. always be available on the BBS in the public download directory. Other
  262. MRsoftware shareware and PD offerings are also available here.
  263.  
  264. For registered MRBackup Professional users, the latest registered version
  265. of MRBackup Professional is also available.
  266.  
  267. Limited voice support is available by calling (401) 846-7639 on weekdays
  268. from 6:00 p.m. to 9:00 p.m. (EST). PLEASE DO NOT CALL AFTER 9:00 p.m.!!!
  269. Voice support is also available on weekends from 9:00 a.m. to 6:00 p.m.
  270. if you're lucky enough to catch me. In addition to MRBackup Professional
  271. development, I also have a `life' which keeps me on the run.
  272.  
  273. MRBackup Tips
  274. -------------
  275. This section contains bits of information which will help you achieve
  276. maximum satisfaction and performance from MRBackup Professional. If you
  277. have a useful tip, please submit it and we'll incorporate it here.
  278.  
  279. Improving Throughput
  280. One important factor in the performance of the AmigaDOS filesystems is the
  281. number of disk buffers allocated to each drive. For hard disk drives, this
  282. value can be set when you partition the drive. The value can also be
  283. modified for any drive with the AmigaDOS `AddBuffers' command. There is no
  284. set value that works well for all drives, but I recommend that you use a
  285. value of at least 30 buffers. Bear in mind that using too many buffers can
  286. waste memory and perhaps even slow down filesystem performance.
  287.  
  288. The number of buffers assigned to a floppy disk drive has no effect on Fast
  289. Disk performance but will have an impact on AmigaDOS backups to floppy
  290. disks.
  291.  
  292. The `Buffer' parameter in the General Parameters (main) window now has a
  293. minimal effect on overall performance since most buffers used by MRBackup
  294. are actually tuned to the best match between input and output devices.
  295.  
  296. If you are backing up to SCSI tape, the buffer size that you specify in the
  297. mountlist entry is very important. Most tape hardware has internal buffer
  298. memory. Data is held in this buffer until it fills, then is written to
  299. tape. If you specify a mountlist entry buffer size exactly matched to the
  300. capacity of the tape drive's internal buffer, you will achieve maximum
  301. parallel execution of the tape handler and MRBackup and thus maximum
  302. throughput. This can also be a case where more isn't necessarily better.
  303.  
  304. AmigaDOS Formatting
  305. When performing AmigaDOS backups to floppy disk, you can control the
  306. formatting of individual diskettes via the `Formatting' and `Filesystem'
  307. settings in the General Parameters window. When `Formatting' is set to
  308. `Normal', MRBackup executes a script named MRBackup:FormatDisk. This
  309. script is designed to run automatically without user assistance or
  310. intervention. However, due to the design of the AmigaDOS Format program,
  311. if a disk error is encountered, the script may not be able to complete. If
  312. you experience this problem, you may want to edit the FormatDisk script to
  313. make it more interactive. Find the line that reads:
  314.  
  315. SYS:System/Format <nil: Drive {Device} Name {Label} {NOICONS} {QUICK}
  316. {FFS}
  317.  
  318. and remove the `<nil:' input specification. This will cause the script to
  319. pause until you press the RETURN key. If you're running MRBackup on a
  320. custom (non-WorkBench) screen, you will have to bring the WorkBench screen
  321. to the front and locate the FormatDisk window in order to do this.
  322.  
  323. I recommend that you preformat all new (out of the box) diskettes, then use
  324. the `Quick' setting in the `Formatting' option. If you're running AmigaDOS
  325. 2.04 or beyond, the FormatDisk script will not be used. Instead, MRBackup
  326. can call an internal AmigaDOS support routine to perform the formatting.
  327.  
  328. Backup Operations
  329. -----------------
  330. The data and programs on your Amiga might well be worth more to you (in
  331. terms of cost to replace) than the machine itself. Hard disks fail.
  332. Systems "crash", causing irrecoverable damage to hard disk partitions.
  333. Backups are insurance against such probabilities. However, they often
  334. don't get done. The excuses are many and varied. "I'm too busy", "I meant
  335. to, but...", "I don't have enough floppy disks", etc. We are all guilty to
  336. varying degrees. Even the author of this backup program has been caught
  337. "with his pants down" on a couple of occaisions (excuse #1). Needless to
  338. say, backups are not a fun way to use your Amiga and they require
  339. discipline to be done on a regular and effective basis. MRBackup goes a
  340. long way toward making this chore more pleasant.
  341.  
  342. MRBackup preserves all file attributes when backing up and restoring files.
  343. The file protection word (HSPARWED), comment and modification date are all
  344. maintained. This is true for all backup modes.
  345.  
  346. The Backup Modes
  347. ----------------
  348. In a previous section, we touched briefly on the fact that MRBackup
  349. supports three backup modes:
  350.  
  351.  AmigaDOS Backup Mode
  352.  
  353.  Fast Disk Backup Mode
  354.  
  355.  SCSI Tape Backup Mode
  356.  
  357.  
  358. MRBackup provides you the flexibility to choose the mode that is best
  359. suited to your needs (or budget!).
  360.  
  361. AmigaDOS Backup Mode
  362. The AmigaDOS backup mode provides full compatibility with AmigaDOS and its
  363. tool set. That is, you can manipulate the files in an AmigaDOS save-set
  364. with the standard Amiga tools such as DIR, LIST, COPY, TYPE, etc. When
  365. backing up to diskette, MRBackup creates disk volumes which are accessible
  366. to the AmigaDOS filesystem. MRBackup also employs no hardware-specific
  367. "tricks" in this mode. If the disk hardware is supported by standard Amiga
  368. software, MRBackup will handle it (if you find an exception to this, please
  369. let us know!).
  370.  
  371. One important item to note is that you are not required to backup files to
  372. floppy diskettes. If you are fortunate enough to have a "spare" hard disk,
  373. a hard disk with removable media, lots of extra space or if you are
  374. connected to a network file server, you can use any of these for your
  375. backup destination. You can also perform backups from one directory to
  376. another.
  377.  
  378. Fast Disk Backup Mode
  379. The Amiga's original filesystem, while providing a great deal of
  380. recoverability, suffers from poor performance. This is especially notable
  381. when accessing floppy disks. This can be overcome somewhat by adding more
  382. disk buffers via the AddBuffers command or by using a floppy disk
  383. accelerator (caching program) such as ASDG's Facc-II. The new, improved
  384. Fast File System (FFS) enhances performance a great deal but is still slow
  385. when working with floppy disks.
  386.  
  387. MRBackup addresses this problem by providing a new diskette format. This
  388. format is called MRBackup Fast Disk Format (real catchy name, eh?). In a
  389. sense, this format is analagous to a streaming tape drive. Floppy disk
  390. head movement is minimized. The diskette is formatted as data is written
  391. to it and slightly more data can be written to the diskette (without using
  392. any compression techniques). Also, files are automatically split across
  393. volumes in Fast Disk mode, meaning that there is no unused space on your
  394. backup diskettes. At the same time, a high degree of integrity and
  395. recoverability has been designed in. Though this format cannot be read by
  396. the AmigaDOS filesystem(s), you will most likely prefer to use it for most
  397. general-purpose backups because it is so fast.
  398.  
  399. Another interesting feature of Fast Disk mode is that you can BACKUP TO A
  400. FILE OR ANY STREAM-ORIENTED DEVICE! This capability, in essense, simulates
  401. a very large capacity floppy diskette. You can then manage this backup
  402. file as a single entity. If you're fortunate enough to be connected to a
  403. networked file server with lots of available disk space, the advantages are
  404. tremendous! You can perform a full backup without changing disks, saving
  405. your backups in remote files while fully preserving the AmigaDOS attributes
  406. of the original files.
  407.  
  408. SCSI Tape Backup Mode
  409. As you might have guessed, this mode supports a streaming tape drive with a
  410. SCSI (Small Computer Systems Interface) interface. It is essentially the
  411. same as Fast Disk mode, except that additional support and modified
  412. error-handling behavior are invoked for the tape drive. Refer to the
  413. section titled @{ "MRBackup SCSI Tape Support" ALink
  414. "MRBackup:Help/MRB_SCSITape.guide/main" } for specific information.
  415.  
  416. You may not have even thought of it, but there are several approaches to
  417. backing up your system. Each has its advantages and disadvantages. You
  418. may use one or more of them, depending upon your use of the Amiga.
  419. MRBackup is so flexible that you may come up with several other approaches
  420. not detailed here.
  421.  
  422. Backup Schemes
  423. --------------
  424.  
  425. The Full Backup
  426. A full backup is the most desirable method if time and available backup
  427. media are not limiting factors. A complete "snapshot" of your hard disk
  428. partition(s) is taken, fully reflecting the state of your machine at that
  429. point in time. If you are using floppy disks to backup a large partition,
  430. however, you may find this approach quite burdensome. Given MRBackup's
  431. flexibility, however, you will quite likely find a mix of backup techniques
  432. that satisfy your needs.
  433.  
  434. Another thing to remember is that much of your commercial software already
  435. has a backup - the original disk (or the backup you made of the original
  436. disk if you followed typical vendor's instructions). If you have lots of
  437. commercial software installed on your hard disk, you should probably
  438. consider excluding the files which don't change (programs, examples, etc.)
  439. via the backup filter. This will dramatically cut down on the time and
  440. media required for a "full" backup.
  441.  
  442. The Incremental Backup
  443. Incremental backups provide a reasonable alternative to the full backup if
  444. the proper procedures are followed. The incremental backup consists of a
  445. full system backup followed by one or more partial backups. The partial
  446. backups record only the files that have changed since the full backup was
  447. performed.
  448.  
  449. Incremental Backup Based On File Modification Date
  450. Each time a file is written (modified), the AmigaDOS filesystem sets the
  451. file's modification date to the current date and time, as set in the
  452. Amiga's time-of-day clock. MRBackup can take advantage of this fact by
  453. comparing file modification dates against the Test Date setting in the main
  454. window. Only files changed on or after the Test Date are selected for
  455. backup.
  456.  
  457. A typical backup scenario for a date-sensitive backup might be:
  458.  
  459.  · Perform a full system backup to backup media set 1.
  460.  
  461.  · Perform incremental backup to backup media set 2.
  462.  
  463.  · Perform incremental backup to backup media set "n".
  464.  
  465.  · Repeat the sequence starting with step 1.
  466.  
  467. In the sequence above, there is an implied delay between steps. Depending
  468. upon your requirements and confidence level (degree of self-discipline?),
  469. the delay may range from several hours to a week or more (not much more!).
  470. You might choose a one month cycle (i.e. step 1 is repeated on the first
  471. Saturday of each month). Notice that multiple media sets (tapes, floppies,
  472. files, etc.) are required. When performing incremental backups, you must
  473. not destroy your previous save-set(s).
  474.  
  475. There is some room for variation here, however. You might want to maintain
  476. just two sets of backup media. The first set would contain the full
  477. backup, while the second set would contain all files which changed since
  478. the full backup was done. In this case, each time you perform the
  479. incremental backup, more backup media will be required to hold the
  480. additional files, assuming a dynamic system where files are being changed
  481. on a daily basis.
  482.  
  483. Incremental Backup Based on Archive Bit Setting
  484. In addition to maintaining the file modification date, AmigaDOS also
  485. maintains an archive indicator bit in each file protection word.
  486. Specifically, AmigaDOS clears the archive bit whenever a file is modified.
  487. Backup software, such as MRBackup, can set this bit when a file has been
  488. successfully backed up. When the Test Archive Bits gadget is set to ON,
  489. only files with cleared archive bits will be backed up. If the Set Archive
  490. Bits gadget is also on, MRBackup will set the archive bits of all files
  491. which have been backed up.
  492.  
  493. The sequence to observe when performing the archive bit backup is similar
  494. to that used for the date sensitive backup. However, you MUST use a
  495. different set of backup media for each unique step.
  496.  
  497. As an aside, MRBackup does not prevent you from doing a backup which
  498. combines date testing with archive bit testing. However, it is advised
  499. that you choose one method or the other for desirable results.
  500.  
  501. The Project Backup
  502. If you're a developer, you may be concentrating all of your work in a
  503. specific directory hierarchy. Likewise, if you're a graphics artist, you
  504. may have a specific area in which you work. In these instances, it is
  505. recommended that you do daily "full" backups of these selected areas. This
  506. can be accomplished by setting the Home Path to the name of the topmost
  507. directory for the project area and setting the Test Date gadget to January
  508. 1, 1978 and setting the Test Archive Bits gadget to "No".
  509.  
  510. Also, you may wish to define specific backup and compression filters for
  511. each special project area.
  512.  
  513. The Backup Process
  514. Once you're sure that all save-settings are correct, you may begin the
  515. backup process. This is done by selecting the Backup command from the
  516. Project menu or by typing the keyboard shortcut, Right-Amiga + B.
  517. MRBackup's main window will disappear and a smaller Status Display window
  518. will appear. This window informs you of the progress of the backup. As
  519. the backup proceeds, pop-up requesters will instruct you to insert/remove
  520. media as necessary as well as alert you to other bits of information, error
  521. conditions, etc.
  522.  
  523. The first backup step performed is a scan of all files specified by the
  524. Home Path. While MRBackup is scanning, the Current File or Directory
  525. gadget in the Status Display window will display the name of the directory
  526. being scanned. Once the scan is complete, MRBackup will present its file
  527. selector. The file selector displays the list of files that were
  528. considered eligible for backup, according to the backup parameters you have
  529. chosen. It then gives you the option to omit certain files (or groups of
  530. files) from this list. See the section entitled @{" The MRBackup File
  531. Selector " ALink "MRBackup:Help/MRB_FileSelector.guide/main" } for details
  532. on its operation.
  533.  
  534. Assuming that you completed the file selection process by clicking the OK
  535. button in the file selector window, MRBackup will proceed to backup your
  536. files. If you have selected either AmigaDOS or Fast Disk backup mode, you
  537. will be prompted to insert/remove diskettes as MRBackup requires your
  538. assistance. MRBackup does not currently provide support for the Amiga
  539. Floppy Disk Carousel since, according to our knowledge, it doesn't exist!
  540.  
  541. When the backup is complete, make a quick check of the Errors gadget in the
  542. Status Display window. If it is non-zero, it would be a good idea to check
  543. the backup log to determine the nature of the errors before assuming that
  544. the save-set is acceptible.
  545.  
  546. The MRBackup Compressor
  547. -----------------------
  548. The compressor is a free-running application typically started by MRBackup
  549. to perform data compression/decompression services. When MRBackup requires
  550. these services, it enters into a "dialogue" with the Compressor. By
  551. separating the compression services from the MRBackup program, the MRBackup
  552. program is smaller. Compression performance is also enhanced by the
  553. streaming of data to/from the compressor (actual data movement is
  554. minimized).
  555.  
  556. The compressor is implemented as a small overlayed program. Upon startup,
  557. it first checks to see if a copy of Compressor is already running. If so,
  558. it exits immediately (only one instance of Compressor may be run at one
  559. time). Otherwise, it creates a public port named "MRCompress". When it is
  560. idle, very little memory resources are required. When it becomes active,
  561. the primary code segment is "rolled in" and memory is allocated for the
  562. compression/decompression tables.
  563.  
  564. The compressor should normally be kept in the same directory where the
  565. MRBackup program is stored. The logical name "MRBackup:" should point to
  566. this directory. If you wish to preload the compressor so that MRBackup
  567. will always find it available, simply issue the following command, either
  568. from the CLI or from your s:user-startup script:
  569.  
  570.  RUN <nil: >nil: MRBackup:Compressor
  571.  
  572. If you wish to stop the compressor, just issue the following command from
  573. the CLI:
  574.  
  575.  MRBackup:Compressor quit
  576.  
  577. The following compressor executables are provided:
  578.  
  579.  · Compressor
  580.  Compressor with overlays, will run on any Amiga
  581.  
  582.  · Compressor.No_Overlays
  583.  Compressor without overlays, will run on any Amiga
  584.  
  585.  · Compressor_020
  586.  Compressor with overlays, optimized for accelerated Amigas
  587.  
  588.  · Compressor_020.No_Overlays
  589.  Compressor without overlays, optimized for accelerated Amigas
  590.  
  591. The overlayed configuration requires very little memory when it is idle
  592. since the compression code segment is removed from memory. This is
  593. normally the preferred version to use. However, this also means that the
  594. Compressor program file must be readily accessible so that the overlay
  595. segments can be accessed quickly. If you are in a situation where you must
  596. run MRBackup from floppy disk, you may prefer to use the non-overlayed
  597. version. To do this, simply rename the overlayed version to
  598. "Compressor.Overlays" and rename the non-overlayed version to "Compressor".
  599. DO NOT attempt to run the 020 versions of the Compressor on a stock 68000
  600. machine. These versions contain instruction codes not supported by the
  601. 68000 processor. Attempting to run them will crash your system.
  602.  
  603. Compression guide
  604. -----------------
  605. Data Compression
  606.  
  607. MRBackup provides you with the ability to compress your files as they are
  608. written to a save-set and to decompress them when they are restored. The
  609. primary motivation for doing this is to save space on the backup media and
  610. thus reduce the amount of media required to hold the saveset. There is a
  611. performance penalty exacted for this, however. You must determine if the
  612. savings in space are worth the extra time required to perform the backup or
  613. restore of compressed files. The use of data compression also places extra
  614. demands on system memory which may be a consideration if you are running
  615. other programs (multitasking) while MRBackup is running.
  616.  
  617. Data Compression Method
  618. MRBackup employs Lempel-Ziv compression. While this method does not yield
  619. the highest compression ratios, it is one of the faster software
  620. compression algorithms available. Its ability to be "tuned" through the
  621. use of user-specified code size limits allows you to make certain
  622. performance trade-offs. Larger code sizes will make greater temporary
  623. demands on system memory but will result in higher compression ratios.
  624.  
  625. When a file is compressed, special codes are written at the beginning of
  626. the compressed file to indicate that it is compressed and to record the
  627. size of the codes used for compression. Thus, you need not remember what
  628. code size was used to compress a particular file when you later decompress
  629. it.
  630.  
  631. The Compressor
  632. --------------
  633. MRBackup performs data compression with a separate program named
  634. Compressor. Whenever you start a backup with compression enabled or a
  635. restore with decompression enabled or if you compress/decompress individual
  636. files using the Utilities, MRBackup will check to see if the Compressor is
  637. running. If not, you will be asked for permission to start it. MRBackup
  638. will then enter into a "conversation" with the Compressor, requesting data
  639. to be processed and retrieving the results.
  640.  
  641. There are several advantages to this approach. Some of them are too
  642. technical to be discussed here. Of most importance to the user is that as
  643. a result, the MRBackup program is smaller. If data compression is not
  644. being used, less memory is being used by MRBackup. The Compressor program
  645. is designed to employ "overlays". When it is idle, it uses almost no Amiga
  646. resources since it releases the data compression code and buffer memory and
  647. waits for the next request to do something.
  648.  
  649. Starting and Stopping the Compressor Manually
  650.  
  651. You may elect to start and stop the Compressor "manually" if you so desire.
  652. To start the Compressor, simply enter
  653.  
  654.  RUN MRBackup:Compressor <nil: >nil:
  655.  
  656. from the Shell command prompt or double-click the Compressor icon. To stop
  657. the Compressor, enter
  658.  
  659.  MRBackup:Compressor quit
  660.  
  661. from the Shell command prompt.
  662.  
  663. Compression Estimating
  664. Compression estimating allows MRBackup to better determine if a file will
  665. fit on the current backup diskette when performing an AmigaDOS backup with
  666. compression enabled (it is irrelevant to Fast Disk and SCSI Tape backups).
  667. MRBackup does not know in advance what a file's size will be after it is
  668. compressed. Therefore, when determining whether a file will fit on the
  669. current backup diskette, the file's full size is used. This can result in
  670. a significant amount of wasted space on each diskette. If you set the
  671. compression estimate to a non-zero value, MRBackup will apply this estimate
  672. when determining space available. A reasonable value to start with is 35
  673. (%). This means that you expect most files to be 65% of their original
  674. size (100%-35%) when compressed. Please note that this may lead to
  675. occaisional "disk full" errors, depending on how aggressive your estimate
  676. is. In this case, MRBackup will delete the partially copied file and force
  677. a new diskette. This is a feature you'll have to develop a "feel" for. Of
  678. course, you can always play "safe" and leave this value at zero.
  679.  
  680. The MRBackup File Selector
  681. -------------------------
  682. The file selector is presented to you during backup and restore operations
  683. to enable you to "fine tune" the list of selected files. Before we discuss
  684. its operation, let's take a quick look at the graphical objects that make
  685. up the file selector. In the discussion that follows the term entry refers
  686. to both files and directories.
  687.  
  688. The files available for selection/deselection are presented in the large
  689. box at the left of the file selector. Just to the right of this box, you
  690. will see a scroll bar. When there are more files at a given level than can
  691. be viewed in the selection box, the drag bar (rectangle within the scroll
  692. bar) will be sized in proportion to the number of visible vs. total
  693. entries. You may click and drag this bar to reveal other entries at the
  694. current level. You may also scroll the list one item at a time by clicking
  695. on either of the small buttons at the bottom which have arrow indicators on
  696. them.
  697.  
  698. Each time you click on an entry in the list, it will toggle between
  699. selected and deselected. An entry in the selected state is highlighted by
  700. a dark background. Directory entries and file entries are represented by
  701. different colors. To view the contents of directories (and their
  702. subdirectories), position the mouse pointer over a directory entry and
  703. double-click (two clicks, in rapid succession) on the entry. The display
  704. box will be redrawn with the contents of that directory and the Current
  705. Level indicator will be incremented. To return to the previous level,
  706. simply click on the Up button.
  707.  
  708. Current Level
  709. This gadget reports the nesting level of the directory you are currently
  710. viewing. The top level is zero.
  711.  
  712. Up
  713.  
  714. When you click the Up gadget, the next higher directory level is displayed
  715. and the Current Level gadget is updated accordingly.
  716.  
  717. Include Pattern
  718. This is a string gadget which works in conjunction with any of the Select
  719. buttons (later). The Include Pattern is a filename matching pattern (as
  720. used in the MRBackup filters) which is applied to each filename when one of
  721. the Select buttons is clicked. Only those names matching the pattern will
  722. be selected. If the Include Pattern is blank, no include matching is
  723. performed.
  724.  
  725. Exclude Pattern
  726. This is a string gadget which works in conjunction with any of the Select
  727. buttons (later). The Exclude Pattern is very similar to the Include
  728. Pattern, except that filenames matching the pattern will be excluded from
  729. selection when a Select button is clicked. If both Include and Exclude
  730. patterns are specified, the Include pattern is applied first.
  731.  
  732. Select All
  733. When the Select All button is clicked, all files in the selector file list
  734. are selected.
  735.  
  736. Select all, this level and below
  737. This button causes all entries at the current level and lower (higher level
  738. numbers) to be selected.
  739.  
  740. Select all, this level only
  741. This button causes all entries at the current level to be selected.
  742.  
  743. Deselect all
  744. This button has slightly different behavior, depending upon the Current
  745. Level setting. When the Current Level is zero (top level), all entries are
  746. deselected. When the Current Level is non-zero, all file and directory
  747. entries except the parent directories for the current level are deselected.
  748.  
  749. Deselect all, this level and below
  750. This button causes all entries at and below the Current Level to be
  751. deselected.
  752.  
  753. Deselect all, this level only
  754. This button causes all entries at the Current Level to be deselected.
  755.  
  756. Entries
  757. This gadget reports the total number of entries (files and directories)
  758. contained in the file selector list.
  759.  
  760. No. Selected
  761. This gadget reports the total number of entries currently selected.
  762.  
  763. Disk Est.
  764. For backup operations, this gadget provides a rough estimate of the number
  765. of disks required to hold the files currently selected. If file
  766. compression is enabled, the Compression Estimate value (entered by you) is
  767. factored into the disk estimate. The disk estimate value is meaningless
  768. for restore operations.
  769.  
  770. OK
  771. Click this button when your file selection is complete and you wish to
  772. proceed with the current operation (backup or restore).
  773.  
  774. CANCEL
  775. Click this button when you wish to terminate the current operation (backup
  776. or restore).
  777.  
  778. Current Directory (unlabeled)
  779. The long gadget at the bottom of the file selector window displays the full
  780. name of the current directory. It is empty when the Current Level is zero.
  781.  
  782. General Parameters Window
  783. The General Parameters Window contains parameters common to most MRBackup
  784. operations. In addition to the usual string gadgets and command buttons,
  785. you will also notice several square buttons (raised gadgets), labeled with
  786. a question mark (?). These are file requester gadgets. Each of these is
  787. associated with another gadget which specifies a device, directory or file
  788. name. When you click on a file requester gadget, a file requester window
  789. is superimposed on MRBackup's main window . With it, you can navigate your
  790. file system and easily select the appropriate name for the corresponding
  791. gadget.
  792.  
  793. The following paragraphs describe all of the gadgets in the General
  794. Parameters window. Please take the time to read this information
  795. carefully, as several important key concepts are presented here.
  796.  
  797. Preferences Gadget
  798. This gadget names the file where MRBackup's operating parameters (user
  799. preferences) are stored. If MRBackup is started without an explicit
  800. "initial file" specification (-i option from CLI, INIT=<name> tool types
  801. from WorkBench), the current directory is searched for "MRBackup.init". If
  802. the file is not found there, the working directory (default =
  803. MRBackup:Prefs) is searched. You may change MRBackup's parameters
  804. (including this one), then use Save Preferences to record your new
  805. settings. You may also reinitialize MRBackup with another preferences file
  806. by changing this specification.
  807.  
  808. Home Path Gadget
  809. The Home Path describes the device or directory where your files normally
  810. reside. During backup operations, files are copied from the location
  811. specified by the Home Path. During restore operations, files are copied to
  812. this location. You may type the Home Path value directly into the gadget
  813. box or you may use the file requester to assist you. The Home Path must
  814. specify a device, volume or directory name (not a file name).
  815.  
  816. Backup Path Gadget
  817. The Backup Path describes the destination (TO path) for files during a
  818. backup or the source (FROM path) for files during a restore. Normally, the
  819. backup path is the name of one of your floppy disk drives. If one or more
  820. of the floppy disk icon gadgets is selected, the Backup Path is ignored.
  821. See the section entitled @{" Backup Operations " ALink
  822. "MRBackup:Help/MRB_Backups.guide/main" } for more details on the Backup
  823. Path.
  824.  
  825. Floppy Disk Icons
  826. MRBackup supports selection of up to four floppy disk devices (DF0:
  827. through DF3:) for backup or restore. This allows you to preload your disk
  828. drives, reducing the frequency with which you must insert diskettes.
  829. MRBackup will cycle through the selected drives and prompt you for more
  830. diskettes only when all have been used or an error is detected. When you
  831. click on one of these icons, a check-mark will appear, indicating that the
  832. drive is selected. Whenever floppy drives are selected in this fashion,
  833. the Backup Path specification is ignored.
  834.  
  835. Voice Gadget
  836. This is an ON/OFF button which enables or disables MRBackup's speech
  837. capability.
  838.  
  839. Media Type Gadget
  840. This gadget selects the type of backup or restore to be performed and
  841. cycles through the following range of values:
  842.  
  843.  · AmigaDOS
  844.  · Fast Disk
  845.  · SCSI Tape
  846.  
  847. Note: the media types are described in detail in the section entitled
  848.  
  849. Buffer Gadget
  850.  
  851. When MRBackup performs input or output from/to a file, a certain amount of
  852. memory is set aside as a buffer (work area). This is done to minimize the
  853. number of physical disk accesses necessary to move data from/to a file.
  854. The bigger the buffer, the fewer disk accesses that are required to move a
  855. file. The default buffer size is 32K bytes (K = 1024, thus 32K = 32768
  856. bytes). If your system has expanded memory, you can take advantage of it
  857. by increasing your buffer size. The maximum buffer size allowed is 512K.
  858. There is no practical benefit in specifying a buffer which is more than two
  859. times larger than the largest file on your system. This will simply waste
  860. memory which might be needed by other applications (remember - we can
  861. multitask while doing a backup or restore!).
  862.  
  863. Listing Path Gadget
  864. MRBackup normally generates a listing during backups. This gadget
  865. specifies the file or device to receive the listing. You may type the
  866. listing path directly into the gadget or you may use its requester gadget
  867. to assist you. To send the listing directly to the printer, you would
  868. select "PRT:". To save the listing to a file on the hard disk, simply
  869. select the appropriate directory and file name.
  870.  
  871. Log File Gadget
  872. MRBackup will optionally generate a log of all of its activities if the Log
  873. File gadget contains a valid pathname. This log will contain time-stamped
  874. progress reports and error messages. To disable the log, simply clear this
  875. gadget. When errors are detected during a backup or restore, it is good
  876. practice to check the contents of the log for the cause and severity of
  877. these errors.
  878.  
  879. Options Button
  880. This command button activates the Options window and is provided as a
  881. convenient alternative to the equivalent menu command.
  882.  
  883. Filters Button
  884. This command button activates the Filters window and is provided as a
  885. convenient alternative to the equivalent menu command.
  886.  
  887. Backup Button
  888. This command button initiates a backup operation and is equivalent to the
  889. Backup menu command.
  890.  
  891. Restore Button
  892. This command button initiates a restore operation and is equivalent to the
  893. Restore menu command.
  894.  
  895. Utilities Button
  896. This command button activates MRBackup's file utilities. It is equivalent
  897. to the Utilities menu command.
  898.  
  899. MRBackup Restores
  900. -----------------
  901. The Restore Process
  902. The file restoration process is the inverse of a backup. You would most
  903. likely do a full restore when rebuilding a disk partition. A partial
  904. restore might be done to recover files which were deleted accidentally.
  905.  
  906. Restore Operations
  907. ------------------
  908. Relevant Settings
  909.  
  910. The following MRBackup settings come into play when performing a restore
  911. operation:
  912.  
  913. · Home Path - the target ("to" location) for the restore. 
  914.  
  915. · Backup Path - the source ("from" location) for the restore.
  916.  
  917. · Disk Selection Icons - optional selection of backup path
  918.  (overrides Backup Path).
  919.  
  920. · Backup Mode - indicates the type of save-set we are restoring from.
  921.  
  922. · Decompression - sets the upper code size limit for file decompression.
  923.  Files compressed with code sizes larger than this limit will be
  924.  restored in their compressed state.
  925.  
  926. · Buffer, specifies the amount of memory to be used for file I/O buffering
  927.  (same as backup).
  928.  
  929. · Decompression Filter - compressed files whose names match one or more of
  930.  the patterns in this file will not be decompressed during a restore.
  931.  
  932. · Log File - records errors and progress messages during the restore.
  933.  
  934. · Error Handling - establishes the type of error handling employed during
  935.  the restore.
  936.  
  937. · Voice On/Off - enables/disables MRBackup's speech capability.
  938.  
  939.  
  940. Points to Remember
  941. ------------------
  942. There are some interesting (and important) items to be aware of when
  943. performing a file restore operation. During a backup, MRBackup preserves
  944. the complete directory hierarchy for the files which are backed up . This
  945. may be cause for some confusion. Consider the following example. You
  946. perform a backup with the Home Path set to "DH0:" (your first hard disk
  947. partition). A portion of the files selected might look like
  948.  
  949.  ARexx
  950.  ARexx/Docs
  951.  ARexx/Examples
  952.  ARexx/Tools
  953.  Docs
  954.  Docs/Amiga
  955.  Docs/Graphics
  956.  Docs/Utilities
  957.  ... etc.
  958.  
  959. If you later restore the save-set with the Home Path again set to "DH0:",
  960. your files will be restored to the same level in the hierarchy.
  961.  
  962. When you do a backup and specify a subdirectory as the Home Path, the full
  963. directory hierarchy from the "top" of the partition through all levels
  964. included by the Home Path is preserved. For levels higher than the Home
  965. Path, only the directories are preserved (files are ignored). When you
  966. restore such a backup, the Home Path must be changed to the name of the
  967. partition (e.g. DH0:, DH1:, etc.) to which you want the files recovered.
  968. Of course, if you wish to restore your/save-set to a lower-level hierarchy,
  969. you are free to select any valid Home Path.
  970.  
  971. It is important to note that MRBackup will not overwrite an existing file
  972. with a file which has the same or earlier modification date unless you
  973. enable the Force Copy option. During the restore, a message will be
  974. displayed to the screen and written to the log file for each file that is
  975. skipped because of this condition.
  976.  
  977. MRBackup SCSI Tape Support
  978. If you are regularly backing up more than 20MB of data, you really should
  979. consider the purchase of a streaming SCSI tape drive. Chances are, you
  980. already have the requisite SCSI interface controller (to interface and
  981. control your hard disk drive) so you will only need to aquire a tape drive.
  982. SCSI tape drives are becoming more and more affordable, with several good
  983. quality units available in the under $300 price range. Tape cartridges
  984. cost about $20 each. The time and aggravation you'll save are inestimable
  985. in their value. Also, since you'll be much more likely to perform regular
  986. backups with such a painless medium, your system will be much more secure.
  987. Do yourself a favor!
  988.  
  989. A SCSI tape handler is provided with MRBackup and is installed as a part of
  990. the standard MRBackup installation procedure. To use it, you must perform
  991. the following steps:
  992.  
  993. · If it isn't already present, copy the MRBackup tape handler,
  994.  MRTape-Handler to the L: directory:
  995.  
  996.  COPY MRBackup:L/mrtape-handler to L:
  997.  
  998. · Add the supplied device mountlist entry to your DEVS:Mountlist file,
  999.  using a text editor or, if you are running WorkBench 2.04 or above,
  1000.  just copy the mountlist entry file to the DEVS: directory. The
  1001.  mountlist entry provided with MRBackup is named "mountlist.mrtape". 
  1002.  It contains the following:
  1003.  
  1004.  MRTAPE: Handler = l:mrtape-handler
  1005.  StartUp = "128/scsi.device/4/0/3"
  1006.  Stacksize = 4000
  1007.  Priority = 5
  1008.  GlobVec = -1
  1009.  #
  1010.  
  1011. You may need to change the "Startup" line. The expression to the right of
  1012. the equal sign (=) has the following format:
  1013.  
  1014.  "<buffer_size>/<device_driver>/<device_number>/<luno>/<flags>"
  1015.  
  1016. The beginning and ending double quotes are required if you are using the
  1017. standard AmigaDOS Mount command.
  1018.  
  1019. The <buffer_size> parameter is specified in multiples of K (K=1024). The
  1020. example value of 128, above, provides double-buffering for the WangTek
  1021. model 5XXX-ES tape drives, which have an internal 64K buffer.
  1022.  
  1023. The <device_driver> parameter specifies the device driver to be used to
  1024. talk to the device. Use "scsi.device" with the CBM A2091 SCSI controller.
  1025. Consult your owner's manual if you are using a non-Commodore SCSI
  1026. controller. Also, note that this field is case-sensitive. If your device
  1027. driver's name has upper case or mixed-case letters in its name, be sure you
  1028. specify this field exactly as the driver is named.
  1029.  
  1030. The <device_number> parameter specifies the SCSI device number, usually
  1031. established by jumpers or DIP switches or jumpers on your tape drive.
  1032.  
  1033. The <luno> (logical unit number) field is not currently supported and must
  1034. be zero.
  1035.  
  1036. The <flags> parameter is a specially encoded value which selects certain
  1037. features of the tape drive. Each bit position in the <flags> parameter has
  1038. a unique value (1, 2, 4, etc.). Various feature selections can be made by
  1039. adding these values together. The current feature values are:
  1040.  
  1041. 1 - asynchronous mode
  1042. 2 - use on-board hardware buffering
  1043.  
  1044. Thus, to select both asynchronous mode and on-board buffering, you would
  1045. add these values together for a <flags> value of 3.
  1046.  
  1047. Once the above steps have been performed, you must mount the MRTAPE:
  1048. device. This is done with the following command:
  1049.  
  1050.  MOUNT MRTAPE: or
  1051.  
  1052.  MOUNT MRTAPE: FROM DEVS:mountlist.mrtape (AmigaDOS 2.04)
  1053.  
  1054. You may then specify MRTAPE: as your Backup Path. You may also automate
  1055. the device mounting process by placing the above command in your
  1056. S:Startup-Sequence (or S:StartupII) file.
  1057.  
  1058. Special Features of MRTape-Handler
  1059. The tape handler provided with MRBackup, MRTape-Handler, is designed to
  1060. work with a wide array of tape devices from many different vendors. Though
  1061. you many not redistribute this handler, you are welcome to use it with
  1062. other Amiga applications. When used with MRBackup, MRTape-Handler can
  1063. communicate certain information to MRBackup which will allow dynamic tuning
  1064. of the buffers used to transfer data between the two processes.
  1065.  
  1066. Asynchronous vs. Synchronous Mode
  1067. MRTape-Handler supports both synchronous and asynchronous tape access. In
  1068. synchronous mode, the program requesting a tape operation must wait until
  1069. that operation completes before it can continue. In asynchronous mode,
  1070. MRTape-Handler will attempt to complete the operation "on its own time", in
  1071. parallel with the requesting program's activity. Thus, asynchronous mode
  1072. generally yields better performance. However, we do not live in a perfect
  1073. world. Certain combinations of tape drive and SCSI controller can lock up
  1074. (hang) the Amiga when run in asynchronous mode. We have yet to see a
  1075. definitive solution to the problem though many hardware "hacks" have been
  1076. offered. Synchronous mode seems to fare better in these situations.
  1077.  
  1078. Multiple Savesets on One Tape
  1079. MRTape-Handler has the ability to "stack" multiple savesets on a single
  1080. tape cartridge. This is achieved by a slight modification to the device
  1081. naming conventions used by the MRTape-Handler. Normally, when you specify
  1082. the tape device name as "MRTape:", the tape is rewound prior to the start
  1083. of the backup and any information previously written to the tape is
  1084. overwritten. To append a new saveset to the end of a tape cartridge which
  1085. already contains one or more savesets, simply append an "A" to the tape
  1086. device name (e.g. "MRTape:A"). Prior to writing the new saveset, the tape
  1087. is positioned past the end of the last saveset on the tape.
  1088.  
  1089. To restore from a saveset which is not the first saveset on the tape, you
  1090. must append the saveset number to the tape device name. Saveset numbers
  1091. begin with zero. Therefore, to retrieve the third saveset, you must append
  1092. a "2" to the tape device name. Example: "MRTape:2". The only "trick" to
  1093. all of this is to remember the order of your savesets. MRBackup currently
  1094. doesn't provide any means to record this information. Thus, you should
  1095. keep this information in a notebook or in a text file on your system.
  1096. Should you forget, however, this information is very easily retrieved with
  1097. MRBackup's Scan Tape command. Improvements on this capability are planned
  1098. for a future release of MRBackup Professional. You should also be aware
  1099. that this capability only exists for "sequential access" tape drives such
  1100. as the Tandberg, WangTek, Sony, etc. This is because MRBackup depends upon
  1101. tape marks to separate its savesets. Drives which employ "direct access",
  1102. such as the 3M drive, will not support this feature.
  1103.  
  1104. Using MRBackup with Other Handlers
  1105. The decision to use a tape handler, rather than embedding tape-specific
  1106. code in MRBackup was an important one. Though there may be a minor penalty
  1107. in performance, the net result is that MRBackup is adaptable to other
  1108. third-party handlers (public domain, shareware or commercial) which may be
  1109. developed for specific devices suitable for backups. If the tape handler
  1110. supplied with MRBackup Professional doesn't appear to be performing
  1111. optimally with your particular device, don't hesitate to try another
  1112. handler which you suspect might work better. Of course, we would be very
  1113. grateful for any information you pass back to us with regard to any
  1114. problems you might encounter. We are constantly striving to improve the
  1115. quality of MRBackup Professional.
  1116.  
  1117. MRTape: SCSI Tape Handler V1.07
  1118. This is a tape handler designed primarily for MRBackup Professional.
  1119. Portions of this handler were originally derived from code written by
  1120. Markus Wandel and Bob Rethemeyer. I am very grateful to them for their
  1121. contributions to my understanding of SCSI tape operations.
  1122.  
  1123. The current version of mrtape-handler represents a complete rewrite of the
  1124. earlier code and sports many new features, several of which were designed
  1125. specifically to support MRBackup Professional. It is known to support the
  1126. following SCSI tape drives:
  1127.  
  1128.  Wangtek 5XXX ES
  1129.  This drive has an on-board 64K byte cache. Specify "64" as the
  1130.  buffer size if you can afford it (this results in 128k bytes
  1131.  being set aside by the handler, so plan accordingly). I believe
  1132.  you'll get optimal results with MRBackup if you also set "his"
  1133.  buffer size to 64K. This results in an optimal double-buffering
  1134.  arrangement.
  1135.  
  1136.  Data Cartridge Technology MCD-40 (and -20)
  1137.  This drive uses a fixed-size block of 8192 bytes. Specify "8" as
  1138.  the buffer size in your mountlist entry. This drive does not seem
  1139.  to provide any reasonable asynchronous behavior. I was quite
  1140.  disappointed with its performance compared to the Wangtek or the
  1141.  Sony.
  1142.  
  1143.  Archive ????
  1144.  
  1145.  Sony SDT-1000 (added 03/30/91)
  1146.  On the SONY DAT drive, it is currently assumed that the drive
  1147.  defaults to "variable block size" mode. Since this is the
  1148.  vendor-preferred mode, MRBackup uses it. The drive is a real
  1149.  performer, though settling time after a rewind is a bit
  1150.  unsettling. :-)
  1151.  
  1152.  Tandberg 3600 series
  1153.  This is quite similar to the WangTek drive. It has an on-board
  1154.  64K byte cache, though only 60K is really available for buffering.
  1155.  This one may have a few glitches when run in asynchronous mode.
  1156.  
  1157.  
  1158. The use of the word "handler" is significant. This is not a "device
  1159. driver". It responds to AmigaDOS I/O packets. Implementing tape support
  1160. in this way (as opposed to embedding SCSI direct calls within the MRBackup
  1161. Professional program) provides a large degree of device independence for
  1162. MRBackup Professional. MRBackup Pro simply writes a stream of data
  1163. (encoded in MRBackup's "FastDisk" format) to the Backup Path. This may
  1164. just as easily be the SER: device, a file (local or networked) or some
  1165. other device configured to respond to standard filesystem calls.
  1166.  
  1167. Here are the packets supported and the degree to which they are supported:
  1168.  
  1169.  ACTION_FINDINPUT
  1170.  Opens the drive for exclusive read access only.
  1171.  
  1172.  ACTION_FINDOUTPUT
  1173.  Opens the drive for exclusive write access only.
  1174.  
  1175.  ACTION_INFO (26)
  1176.  ACTION_DISK_INFO
  1177.  These fill in an InfoData structure with as much useful information
  1178.  as possible. Specifically, an attempt is made to fill in the 
  1179.  following fields:
  1180.  
  1181.  id_DiskState
  1182.  If a tape is inserted, this field is set to ID_UNREADABLE_DISK.
  1183.  If no tape is inserted, this field is set to ID_NO_DISK_PRESENT.
  1184.  
  1185.  id_NumBlocks
  1186.  An approximation of the tape cartridge capacity is provided.
  1187.  
  1188.  id_BytesPerBlock
  1189.  If a 3M drive (MCD-40) is detected, 8192 is assumed. Otherwise,
  1190.  512 is assumed.
  1191.  
  1192.  id_DiskType
  1193.  This field is set to 'TAPE'. The first 4 characters of the
  1194.  manufacturer's code might be used in a later revision.
  1195.  
  1196.  id_InUse
  1197.  This field is set to the boolean equivalent of "tape cartridge
  1198.  inserted".
  1199.  
  1200.  ACTION_LOCATE_OBJECT (Lock)
  1201.  A rather hokey lock is created and returned. It should be sufficient
  1202.  for programs which require such things.
  1203.  
  1204.  ACTION_EXAMINE_OBJECT (Examine)
  1205.  This packet is recognized, but ERROR_OBJECT_WRONG_TYPE is currently
  1206.  returned.
  1207.  
  1208.  ACTION_READ
  1209.  Just what you'd expect.
  1210.  
  1211.  ACTION_WRITE
  1212.  Just what you'd expect.
  1213.  
  1214.  ACTION_END (Close)
  1215.  If the write buffer has any residue, it is padded to the device block 
  1216.  size with zeros and written to the drive. If the drive is not the
  1217.  3M variety, a filemark is then written. The device is then marked
  1218.  as closed.
  1219.  
  1220.  ACTION_DIE
  1221.  All resources allocated to the handler are released and the handler
  1222.  is unloaded from memory. If you replace the current handler code
  1223.  with a new version and then re-access the drive, the new code will
  1224.  be loaded and initialized (great for development - no need to
  1225.  reboot).
  1226.  
  1227. (There are others, to be documented later.)
  1228. MRBackup currently treats the backup set as one contiguous file.
  1229. Individual files have special header blocks and the data blocks have
  1230. control information which defines the end of each file. There is a special
  1231. control block to mark the end of tape. Thus, the filemark isn't typically
  1232. ever "read" and isn't required, which is how the 3M drive
  1233. (block-structured) is able to work.
  1234.  
  1235. MRTape-Handler uses asynchronous I/O, but you might not believe it when you
  1236. use the 3M tape drive. I'm not sure what the problem is, but I wasn't able
  1237. to get good performance from the 3 1/2" ministreamer that I tested with.
  1238.  
  1239. The buffer size parameter in the Startup field of the mountlist entry must
  1240. be chosen with care. This is the size of 1 buffer (as opposed to 1 block,
  1241. as is typically specified for filesystems). The handler allocates one
  1242. buffer for synchronous I/O and two buffers when using asynchronous I/O.
  1243. For example, I reccommend 8 (8192 bytes) for the 3M drive (this is required
  1244. by the drive) and 64 (65536 bytes) for the Wangtek 5150 ES. The Wangtek
  1245. has a 64K cache buffer. Setting MRTapeHandler to use 64K buffers causes
  1246. 128K bytes to be allocated (a significant chunk!) but performance is quite
  1247. good. To obtain the best performance for other drives, you may need to
  1248. experiment. Use MRBackup Professional's "Throughput" measurement as a
  1249. relative guide to the effects that changes in buffer sizes have on your
  1250. backups.
  1251.  
  1252. Here is a sample mountlist entry for MRTape-Handler:
  1253.  
  1254.  This is a mountlist entry for the SCSI tape handler provided with 
  1255.  MRBackup. Pay particular attention to the StartUp message. Its 
  1256.  format is:     
  1257.  "<buffer_size>/<device_name>/<unit>/<luno>/<flags>"  
  1258.       
  1259.  where
  1260.  <buffer_size> is the total amount of buffer memory, specified 
  1261.  in K (K = 1024);    
  1262.       
  1263.  <device_name> is the SCSI device driver name;  
  1264.       
  1265.  <unit> is the SCSI unit number;   
  1266.       
  1267.  <luno> is the SCSI logical unit number (not currently used but 
  1268.  must be set to zero);    
  1269.       
  1270.  <flags> is a set of bits controlling certain tape drive options 
  1271.  The bit values, which may be added together are:  
  1272.       
  1273.  1 asynchronous mode, 0 = synchronous mode  
  1274.  2 use on-board buffer, 0 = don't use on-board buffer 
  1275.       
  1276.  Example: to enable async mode and the on-board buffer, the 
  1277.  <flags> value would be 3 (1 + 2).   
  1278.       
  1279.  Other flag bits will be provided as new features are added. 
  1280.  
  1281. MRTAPE: Handler = l:mrtape-handler
  1282.   StartUp = "64/scsi.device/4/0/3"
  1283.   Stacksize = 4000
  1284.   Priority = 10
  1285.   GlobVec = -1
  1286. #
  1287.  
  1288.  
  1289. To determine the version number of MRTapeHandler, view the handler with any
  1290. binary file editor and look for a string that begins with the letters
  1291. "$VER:". You may also use the "version" command under WorkBench 2.0.
  1292.  
  1293. A small program, named "die", has been supplied with the handler. It
  1294. allows you to force the handler to free up all resources and unload itself.
  1295. Example:
  1296.  
  1297.  die mrtape:
  1298.  
  1299.  
  1300. For a long time, MRBackup has relied on arp.library for many of its
  1301. services. The Amiga Resource Project (ARP) was created by Microsmiths,
  1302. Inc. of Cambridge, MA. Currently MRBackup only depends upon this library
  1303. for file requester (under AmigaDOS 1.3) and date management services and is
  1304. being phased out of MRBackup Professional.
  1305.  
  1306. MRTape-Handler got its early inspiration from a public domain tape handler
  1307. written by Marcus Wandel. Though MRTape-Handler bears very little
  1308. resemblence to that code, I am nonetheless grateful to Marcus for sharing
  1309. his code which served as an excellent example of SCSI-Direct programming.
  1310.  
  1311.  
  1312.